package com.ease.model.criterion;

import java.io.Serializable;
import java.util.List;

import com.ease.common.vo.Entry;

/**
 * 
 * @author nathanleewei
 * 
 */
public interface Criterion extends Serializable {

	String toSqlString(QueryCriteria queryCriteria);

	// String toSqlString(String alias , QueryCriteria queryCriteria);

	@Deprecated
	/* repleace Entry<String, Object> with StringObjectEntry */
	List<Entry<String, Object>> getNamedValue(QueryCriteria queryCriteria);

	Criterion and(Criterion criterion);

	Criterion or(Criterion criterion);
}
